package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_advert_position;

import cn.com.api.mapper.ApiU_advert_positionMapper;

import cn.com.api.service.ApiU_advert_positionService;

/**
 * 
 **/
@Service
public class U_advert_positionServiceImplBase {
	@Autowired
	private ApiU_advert_positionMapper apiU_advert_positionMapper;
    
    // 根据id获取
	public ApiU_advert_position findU_advert_positionById(Integer id){
		ApiU_advert_position u_advert_position = apiU_advert_positionMapper.findU_advert_positionById( id );
		return u_advert_position;
	}
    
    //查看数据集
	public List<ApiU_advert_position> findU_advert_positions(){
        List<ApiU_advert_position> u_advert_positions = apiU_advert_positionMapper.findU_advert_positions();
		return u_advert_positions;
    }
    
	// 添加
	public int insertU_advert_position(ApiU_advert_position u_advert_position){
		int ret_I= apiU_advert_positionMapper.insertU_advert_position(u_advert_position);
		return ret_I;
	}

	// 修改
	public int updateU_advert_position(ApiU_advert_position u_advert_position){
		int ret_I= apiU_advert_positionMapper.updateU_advert_position(u_advert_position);
		return ret_I;
	}
	
    // 删除
	public int deleteU_advert_position(Integer id){
		int ret_I= apiU_advert_positionMapper.deleteU_advert_position( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


